package com.foreveredu.erlms.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/*
 * @author hushigang 2012/4/14
 * 领域模型类——系统参数
 */
@Entity
@Table(name = "parameter")
public class Parameter implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;// 编号
	private String schoolCode;// 学校代码
	private int examOrder;// 全国计算机等级考试届次
	private int isEnrollPermitted;// 是否允许学生报名，0表示不允许， 1表示允许
	private int isEditEnrollPermitted;// 是否运行修改报名信息，0表示不允许，1表示允许

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column
	public String getSchoolCode() {
		return schoolCode;
	}

	public void setSchoolCode(String schoolCode) {
		this.schoolCode = schoolCode;
	}

	@Column
	public int getExamOrder() {
		return examOrder;
	}

	public void setExamOrder(int examOrder) {
		this.examOrder = examOrder;
	}

	@Column
	public int getIsEnrollPermitted() {
		return isEnrollPermitted;
	}

	public void setIsEnrollPermitted(int isEnrollPermitted) {
		this.isEnrollPermitted = isEnrollPermitted;
	}

	@Column
	public int getIsEditEnrollPermitted() {
		return isEditEnrollPermitted;
	}

	public void setIsEditEnrollPermitted(int isEditEnrollPermitted) {
		this.isEditEnrollPermitted = isEditEnrollPermitted;
	}

}
